#ifndef LABELENTRY_H_INCLUDED
#define LABELENTRY_H_INCLUDED

#include <gtkmm/entry.h>
#include <gtkmm/label.h>
#include <gtkmm/box.h>
#include <string>
class LabelEntry:public Gtk::VBox {

    public:
    LabelEntry()
    {
        this->add(this->Label_x);
        this->add(this->Entry_x);
    }
    LabelEntry(std::string& LABEL):Label_x(LABEL)
    {
        this->add(this->Label_x);
        this->add(this->Entry_x);
    }

    LabelEntry(const char* LABEL):Label_x(LABEL)
    {
        this->add(this->Label_x);
        this->add(this->Entry_x);
    }
    ~LabelEntry(){}

    std::string entry()
    {
        return this->Entry_x.get_text();
    }

    void setLabel(std::string& str)
    {
        this->Label_x.set_text(str);
    }
    void setEntry(std::string& str)
    {
        this->Entry_x.set_text(str);
    }

    std::string label()
    {
        return this->Label_x.get_text();
    }

    protected:
    Gtk::Label Label_x;
    Gtk::Entry Entry_x;
};

#endif // LABELENTRY_H_INCLUDED
